import Vue from "vue";
import App from "./App.vue";
import router from "./router";
import store from "./store";

Vue.config.productionTip = false;

// 引入ElementUI
import ElementUI from "element-ui";
import "element-ui/lib/theme-chalk/index.css";
Vue.use(ElementUI, { size: "small" });

// 引入全局样式
import "./../public/styles/global.less";
import "./../public/styles/icon/iconfont.css";

// 引入改造好的axios
import fetch from "@/utils/fetch";
Vue.prototype.$axios = fetch;

// TODO:登录等
import "./auth";

new Vue({
  router,
  store,
  render: h => h(App)
}).$mount("#app");
